-- cmd_buy_special_goods
-- Create by huanghr
-- 购买冈布奥碎片

function Operation.cmd_buy_special_goods(goodsId, count)
    if DungeonM.isInDungeon() and not DungeonM.isPause() then
        return DungeonActionM.go("buy_special_market_goods"), count, goodsId;
    end

    -- 客户端先自行购买
    if not MarketM.buySpecialGoods(goodsId, count) then
        return false;
    end

    -- 记录起来，需要进行同步
    local v = { goods_id = goodsId, amount = count,};
    SyncM.addMessage("CMD_BUY_SPECIAL_GOODS", v);
    SyncM.startSync();
    return true;
end
